<%@ taglib prefix="f" uri="http://fentsoul.com" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 刘洋
  Date: 2019/12/19
  Time: 10:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@page isELIgnored="false" %>


<!DOCTYPE html>
<html>
<head>
<title>商品编辑</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="/css/bootstrap.css" />
</head>
<body>
<div class="container-fluid">
	




	<nav class="navbar navbar-default" role="navigation">
		<div class="container-fluid">
			<div class="navbar-header">
				<a class="navbar-brand" href="">蛋糕店后台</a>
			</div>
			<div>
				<ul class="nav navbar-nav">
					<li ><a href="orderList.action">订单管理</a></li>
					<li ><a href="userList.action">客户管理</a></li>
					<li class="active"><a href="goodList.action">商品管理</a></li>
					<li ><a href="typeList.action">类目管理</a></li>
					<li ><a href="adminRe.action">修改密码</a></li>
					<li><a href="logout.action">退出</a></li>
				</ul>
			</div>
		</div>
	</nav>

	<br><br>
	<f:form method="update" jsp_class="form-horizontal" multi="true">
		<input type="hidden" name="id" value="${Model.id}"/>
		<div class="form-group">
			<f:label jsp_for="name" jsp_class="col-sm-1 control-label"></f:label>
			<div class="col-sm-6">
				<f:input jsp_for="name" jsp_class="form-control"></f:input>
			</div>
		</div>
		<div class="form-group">
			<f:label jsp_for="price" jsp_class="col-sm-1 control-label"></f:label>
			<div class="col-sm-6">
				<f:input jsp_for="price" jsp_class="form-control"></f:input>
			</div>
		</div>
		<div class="form-group">
			<f:label jsp_for="intro" jsp_class="col-sm-1 control-label"></f:label>
			<div class="col-sm-6">
				<f:input jsp_for="intro" jsp_class="form-control"></f:input>
			</div>
		</div>
		<div class="form-group">
			<f:label jsp_for="stock" jsp_class="col-sm-1 control-label"></f:label>
			<div class="col-sm-6">
				<f:input jsp_for="stock" jsp_class="form-control"></f:input>
			</div>
		</div>
		<div class="form-group">
			<f:label jsp_for="cover" jsp_class="col-sm-1 control-label"></f:label>
			<div class="col-sm-6"><img src="${Model.cover}" width="100" height="100"/>
				<input type="file" name="cover"  id="input_file">推荐尺寸: 500 * 500
			</div>
		</div>
		<div class="form-group">
			<f:label jsp_for="image1" jsp_class="col-sm-1 control-label"></f:label>
			<div class="col-sm-6"><img src="${Model.image1}" width="100" height="100"/>
				<input type="file" name="image1"  id="input_file">推荐尺寸: 500 * 500
			</div>
		</div>
		<div class="form-group">
			<f:label jsp_for="image2" jsp_class="col-sm-1 control-label"></f:label>
			<div class="col-sm-6"><img src="${Model.image2}" width="100" height="100"/>
				<input type="file" name="image2"  id="input_file">推荐尺寸: 500 * 500
			</div>
		</div>
		<div class="form-group">
			<f:label jsp_for="typeId" jsp_class="col-sm-1 control-label"></f:label>
			<div class="col-sm-6">
				<select class="form-control" id="typeId" name="typeId">
					
						<c:forEach items="${types}" var="t">
							<option value="${t.id}" <c:if test="${t.id == Model.typeId}">selected</c:if> >${t.name}</option>
						</c:forEach>
				</select>
			</div>
		</div>

		<div class="form-group">
			<div class="col-sm-offset-1 col-sm-10">
				<button type="submit" class="btn btn-success">提交修改</button>
			</div>
		</div>

	</f:form>
</div>
</body>
</html>